<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>background测试</title>
	<style>
		body,html{
			width: 100%;
			height: 100%;
			padding: 0;
			margin: 0;
		}
		div{
			width: 100%;
			height: 200px;
			background: white;
			text-align: center;
			line-height: 200px;
		}
		section{
			width: 100%;
			height: 100%;
		}
		section:nth-child(1){
			background: #e4d1d3 url("../../images/1.jpg") 100% 100% no-repeat;
			background-size:cover;
			background-attachment: fixed;/* 目前大部分手机浏览器都不兼容此属性 */
		}
		section:nth-child(2){
			background: #e4d1d3 url("../../images/2.jpg") 100% 100% no-repeat;
			background-size:cover;
			background-attachment: fixed;
		}
		section:nth-child(3){
			background: #e4d1d3 url("../../images/3.jpg") 100% 100% no-repeat;
			background-size:cover;
			background-attachment: fixed;
		}
	</style>
</head>
<body>
<section>
	<div>
		这是第一个section
	</div>
</section>
<section>
	<div>
		这是第二个section
	</div>
</section>
<section>
	<div>
		这是第三个section
	</div>
</section>
</body>
</html>